package me.tingyugetc.crawler.fetcher.authentication;

import me.tingyugetc.crawler.fetcher.entity.MethodType;

import java.util.Map;

public class FormLogin {

    private String loginUrl;
    private MethodType method;
    private Map<String, String> formField;

    public FormLogin(String loginUrl, MethodType method, Map<String, String> formField) {
        this.loginUrl = loginUrl;
        this.method = method;
        this.formField = formField;
    }

    public String getLoginUrl() {
        return loginUrl;
    }

    public void setLoginUrl(String loginUrl) {
        this.loginUrl = loginUrl;
    }

    public MethodType getMethod() {
        return method;
    }

    public void setMethod(MethodType method) {
        this.method = method;
    }

    public Map<String, String> getFormField() {
        return formField;
    }

    public void setFormField(Map<String, String> formField) {
        this.formField = formField;
    }
}
